package lab02.test35;

/**
 * Created by admin on 2017/11/18.
 */
public class Worker extends  Employee {
    int days;
    double dailySalary;
    public Worker(String namne,int days,double dailySalary) {
        super(namne);
        this.days=days;
        this.dailySalary=dailySalary;
    }

    @Override
    public double computeSalary() {
        return dailySalary*days;
    }
}
